int arrSum(int* arr, int start, int end){
	int x, m = 0;
	for(x = start; x < start + end; x++)
	{
	m += arr[x];
	}
	
	return m;
}
int sumOddLengthSubarrays(int* arr, int arrSize){
    int x = 0;
    int j = 0;
    int k = 0;
    int f = 0;

    for(x = 1; x <= arrSize; x += 2){
        for(j = 0; j < x; j += x){
    for(k = j; k < arrSize - x + 1;k++){
        f += arrSum(arr, k ,x);
  }
   }
    }
    return f;
}